package com.agentai.system.mapper;

import com.agentai.framework.mybatis.mapper.AgentBaseMapper;
import com.agentai.system.entity.SysSerialNoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
* 系统序列号管理表
*
* @since 1.0.0 2024-11-09
*/
@Mapper
public interface SysSerialNoMapper extends AgentBaseMapper<SysSerialNoEntity> {
    @Select("SELECT getSeqNumber (#{serialType},#{inrValue})")
    String getSeqNumberByType(@Param("serialType") String serialType,
                              @Param("inrValue") int inrValue);
}
